package jfb.examples.gmf.filesystem.diagram.part;

import java.util.Iterator;
import java.util.List;

import org.eclipse.gef.EditPart;
import org.eclipse.gef.Request;
import org.eclipse.gef.commands.Command;
import org.eclipse.gef.commands.UnexecutableCommand;
import org.eclipse.gmf.runtime.diagram.ui.actions.AbstractDeleteFromAction;
import org.eclipse.gmf.runtime.diagram.ui.actions.ActionIds;
import org.eclipse.gmf.runtime.diagram.ui.commands.CommandProxy;
import org.eclipse.gmf.runtime.diagram.ui.commands.ICommandProxy;
import org.eclipse.gmf.runtime.diagram.ui.l10n.DiagramUIMessages;
import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalCommand;
import org.eclipse.ui.ISharedImages;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.PlatformUI;

public class TestAction extends AbstractDeleteFromAction {
	public TestAction(IWorkbenchPart part) {
		super(part);
	}
	
	public void init() {
		super.init();
		setId("test_action");
		setText("Test action");
		setToolTipText("Test action");
	}

	/**
	 * @generated
	 */
	protected String getCommandLabel() {
		return "Test aaaction";
	}

	/**
	 * @generated
	 */
	protected Command getCommand(Request request) {
		return new TestCommand();
	}
	
	class TestCommand extends Command {
		public TestCommand() {
			super();
		}
		
		public void execute() {
			FilesystemDiagramEditorPlugin.getInstance().logInfo("execute");
		}
		
	}
}
